package com.jtdemo.stq.demo.service;

import com.jtdemo.stq.demo.entity.Person;
import com.jtdemo.stq.demo.vo.ResultVo;
import org.springframework.stereotype.Service;

@Service
public interface PersonService {

    //检验登录
    public ResultVo isLogin(String name,String pwd);

    //增加操作
    public ResultVo addPerson(Person person);

    //展示所有人操作
    public ResultVo showPagePerson(int currentPage);

    //修改人信息操作
    public ResultVo updatePerson(Person person);

    //删除人信息操作
    public ResultVo deletePerson(int id);

    //删除人信息操作
    public ResultVo selectPersonByName(int page,String name);
}
